package com.hu.zhcc.shiro.service.HealthIntervention;

import com.hu.zhcc.common.entity.Page;
import com.hu.zhcc.shiro.entity.bo.HealthIntervention.TemplateManagement;

import java.util.List;
import java.util.Map;

public interface TemplateManagementService {
    int deleteByPrimaryKey(Integer tempId);

    int insertSelective(TemplateManagement record);

    TemplateManagement selectByPrimaryKey(Integer tempId);

    TemplateManagement findTemplateByCrux(String tempCrux);

    Page<TemplateManagement> selectAllList(Map map , int offset , int limit);

    int updateByPrimaryKeySelective(TemplateManagement record);
    //禁用
    int updateByTemplateFalse(Integer tempId);
    //启用
    int updateByTemplateTrue(Integer tempId);
    List<TemplateManagement> selectByStart();
}
